{strip}
<div class="contentbox_headbar">
	<div class="left"></div>
	<div class="title"><img src="{$CMS_WEB_DIR}img/icon-page-add.png" alt="" border="0" />  Klasseneditor</div>
	<div class="right"></div>
	<div class="clear"></div>
</div>
	
<div class="contentbox_box">
	{foreach name="textloop" from=$extensions item=ext}
		<div style="float:left;width:200px;font-weight:bold;">
			{$ext.ext_name|stripslashes|htmlentities}<br />
		</div>
		<div style="float:left;width:100px;">
			/{$ext.ext_dir}
		</div>
		<br style="clear:both;" />
		{foreach name="classloop" from=$ext.classes item=class}
			<div style="height:20px;width:25px;float:left;">
				{if $smarty.foreach.classloop.last}
					<img src="{$CMS_WEB_DIR}img/treemenu/branchbottom.gif" alt="" border="0" />
				{else}
					<img src="{$CMS_WEB_DIR}img/treemenu/branch.gif" alt="" border="0" />
				{/if}
			</div>
			<div style="float:left;width:220px;">
				<img src="{$CMS_WEB_DIR}img/admin-icon-classes.gif" alt="" />&nbsp;
				<a href="javascript:void(0);" onclick="{strip}{literal}
					xajax.request(
						{
							ccdsclass:'ccdsClassEditor',
							ccdsfun:'ClassEditorClassOpen'
						},
						{
							parameters:[{
								{/literal}
								class_id:'{$class.class_id}',project_id:'{$project_id}'
								{literal}
							}]
						});
					{/literal}{/strip}">
					{$class.class_name|stripslashes}
				</a>
			</div>
			<div style="float:left;width:150px;">
				/{$class.class_dir}
			</div>
			<br style="clear:both;" />
			{foreach name="tplloop" from=$class.templates item=tpl}
				<div style="width:25px;height:20px;float:left;">
					{if $smarty.foreach.classloop.last}
					{else}
					<img src="{$CMS_WEB_DIR}img/treemenu/line.gif" />
					{/if}
				</div>
				<div style="height:20px;width:25px;float:left;">
					{if $smarty.foreach.tplloop.last}
						<img src="{$CMS_WEB_DIR}img/treemenu/branchbottom.gif" alt="" border="0" />
					{else}
						<img src="{$CMS_WEB_DIR}img/treemenu/branch.gif" alt="" border="0" />
					{/if}
				</div>
				<div style="float:left;width:100px;font-style:italic;">
					<a href="javascript:void(0)" onclick="{strip}{literal}
						xajax.request(
						{
							ccdsclass:'ccdsClassEditor'
							,ccdsfun:'ClassEditorClassTemplatesOpen'
						},
						{
							parameters:[{
								{/literal}
								class_id:'{$class.class_id}',project_id:'{$project_id}'
								{literal}
							}]
						});
					{/literal}{/strip}">
					<img src="{$CMS_WEB_DIR}img/admin-icon-templates.gif" alt="" border="0" />&nbsp;
					{$tpl.tpl_name|stripslashes}
					</a>
				</div>
				<br style="clear:both;" />
			{/foreach}
			{if $smarty.foreach.tplloop.total==0} 
	
				<div style="width:25px;height:20px;float:left;">
					{if $smarty.foreach.classloop.last}
					{else}
					<img src="{$CMS_WEB_DIR}img/treemenu/line.gif" />
					{/if}
				</div>
				<div style="height:20px;width:25px;float:left;">
					{if $smarty.foreach.tplloop.last}
						<img src="{$CMS_WEB_DIR}img/treemenu/branchbottom.gif" alt="" border="0" />
					{else}
						<img src="{$CMS_WEB_DIR}img/treemenu/branch.gif" alt="" border="0" />
					{/if}
				</div>
				<div style="float:left;width:150px;font-style:italic;">
					<a href="javascript:void(0)" onclick="{strip}{literal}
						xajax.request(
						{
							ccdsclass:'ccdsClassEditor'
							,ccdsfun:'ClassEditorClassTemplatesOpen'
						},
						{
							parameters:[{
								{/literal}
								class_id:'{$class.class_id}',project_id:'{$project_id}'
								{literal}
							}]
						});
					{/literal}{/strip}">
					<img src="{$CMS_WEB_DIR}img/admin-icon-templates.gif" alt="" border="0" />&nbsp;
					<i>Template zuweisen</i>
					</a>
				</div>
				<br style="clear:both;" />
			
			
			{/if}
			
		{/foreach}
	{/foreach}
</div>
<br />
<br />

{/strip}
